package com.gopay.bis.cib.ebank.impl;

import com.gopay.bis.cib.ebank.operation.CibB2cQuery;
import com.gopay.common.domain.bank.BaseMessage;
import com.gopay.common.domain.bank.cib.ebank.CibMessage;
import com.gopay.common.exception.GopayException;
import com.gopay.remote.bank.ICertHelper;
import com.gopay.remote.bank.businesses.BankService;

/**
 * 兴业银行B2C网关支付
 * 
 * @CibB2cBankServiceImpl.java
 * @author zhengxue
 * @2014-11-20 上午11:58:42 www.gopay.com.cn Inc.All rights reserved.
 */
public class CibB2cBankServiceImpl implements BankService {
    private ICertHelper cibB2cCertHelper;
    private CibB2cQuery cibB2cQuery;

    public Object sign(BaseMessage msg) throws GopayException {
        return cibB2cCertHelper.sign(msg);
    }

    public Object verify(BaseMessage msg) throws GopayException {
        return cibB2cCertHelper.verify(msg);
    }

    public Object query(Object obj) throws GopayException {
        CibMessage message = (CibMessage) obj;
        return cibB2cQuery.query(message);
    }

    public void setCibB2cCertHelper(ICertHelper cibB2cCertHelper) {
        this.cibB2cCertHelper = cibB2cCertHelper;
    }

    public void setCibB2cQuery(CibB2cQuery cibB2cQuery) {
        this.cibB2cQuery = cibB2cQuery;
    }

	@Override
	public Object dayend(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object refund(Object obj) throws GopayException {
		// TODO Auto-generated method stub
		return null;
	}

}
